#include <Util/Aabb.h>

#include <iostream>
#include <vector>

Aabb::Aabb() {}

void Aabb::draw() const
{/*
    glPushMatrix();
    glColor3d(0.0,1.0,0.0);
    //FACE
    glBegin(GL_LINE_LOOP);
    glVertex3d(m_Lower.x(), m_Lower.y(), m_Lower.z());
    glVertex3d(m_Upper.x(), m_Lower.y(), m_Lower.z());
    glVertex3d(m_Upper.x(), m_Upper.y(), m_Lower.z());
    glVertex3d(m_Lower.x(), m_Upper.y(), m_Lower.z());
    glEnd();
    //BACK
    glBegin(GL_LINE_LOOP);
    glVertex3d(m_Lower.x(), m_Lower.y(), m_Upper.z());
    glVertex3d(m_Upper.x(), m_Lower.y(), m_Upper.z());
    glVertex3d(m_Upper.x(), m_Upper.y(), m_Upper.z());
    glVertex3d(m_Lower.x(), m_Upper.y(), m_Upper.z());
    glEnd();
    //LEFT
    glBegin(GL_LINE_LOOP);
    glVertex3d(m_Lower.x(), m_Lower.y(), m_Lower.z());
    glVertex3d(m_Lower.x(), m_Lower.y(), m_Upper.z());
    glVertex3d(m_Lower.x(), m_Upper.y(), m_Upper.z());
    glVertex3d(m_Lower.x(), m_Upper.y(), m_Lower.z());
    glEnd();
    //RIGHT
    glBegin(GL_LINE_LOOP);
    glVertex3d(m_Upper.x(), m_Lower.y(), m_Lower.z());
    glVertex3d(m_Upper.x(), m_Lower.y(), m_Upper.z());
    glVertex3d(m_Upper.x(), m_Upper.y(), m_Upper.z());
    glVertex3d(m_Upper.x(), m_Upper.y(), m_Lower.z());
    glEnd();
    glColor3d(1.0,1.0,1.0);
    glPopMatrix();
*/
}

void Aabb::reset()
{
    m_Lower = m_Upper = Vec3f(0.0,0.0,0.0);
}
